﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	XmlRuleInstance.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using Smart.Common.Entities;

namespace Smart.Common.Rules
{
	/// <summary>
	/// Xml rules instance
	/// </summary>
	public class XmlRuleInstance : IRulesInstance
	{
		/// <summary>
		/// Instance id
		/// </summary>
		public Identifier Id { get; private set; }

		/// <summary>
		/// Rules source
		/// </summary>
		public object Rules { get; private set; }

		/// <summary>
		/// Xml rules instance
		/// </summary>
		public XmlRuleInstance(Identifier id, string rules)
		{
			Id = id;
			Rules = rules;
		}
	}
}